package com.pine.dbant.common.model;

import lombok.Getter;

/**
 * @author xiaoyuan
 * @create 2022/11/17 11:33
 **/
@Getter

public enum JdbcMetadataTreeView implements MetadataTreeView {
    CONN("CONN", "连接"),
    CATALOG("CATALOG", "数据库"),
    TABLE_TYPE("TABLE_TYPE", "表"),
    VIEW_TYPE("VIEW_TYPE", "视图"),
    FUNCTION_TYPE("FUNCTION_TYPE", "函数"),
    TRIGGER_TYPE("TRIGGER_TYPE","触发器"),
    BACKUP_TYPE("BACKUP_TYPE", "备份"),
    QUERY_TYPE("QUERY_TYPE", "查询"),
    TABLE("TABLE", "表"),
    TRIGGER("TRIGGER", "触发器"),
    VIEW("VIEW", "视图"),
    FUNCTION("FUNCTION", "函数"),
    BACKUP("BACKUP", "备份"),
    QUERY("QUERY", "查询"),
    FIELD("FIELD","字段"),
    TABLE_INDEX("TABLE_INDEX","表的索引"),
    TABLE_DETAIL("TABLE_DETAIL","表的详情"),
    PRIMARY_KEY("PRIMARY_KEY","表的主键")
    ;

    private String type;

    private String typeName;

    JdbcMetadataTreeView(String type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }
}
